package com.fulihui.weixinclient.model.enums;

import org.near.toolkit.model.BaseEnum;

/**
 * 微信订单状态枚举
 * Created by Willard on 2015/9/17.
 */
public enum WeiixnTradeStateEnum implements BaseEnum {

    SUCCESS("SUCCESS", "支付成功"),

    REFUND("REFUND", "转入退款"),

    NOTPAY("NOTPAY", "未支付"),

    CLOSED("CLOSED", "已关闭"),

    REVOKED("REVOKED", "已撤销（刷卡支付）"),

    USERPAYING("USERPAYING", "用户支付中"),

    PAYERROR("PAYERROR", "支付失败"),

    ;

    private String code;

    private String desc;

    WeiixnTradeStateEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
